package com.hina.rec.application.convert;

import com.hina.rec.domain.model.WorkflowDO;
import com.hina.rec.endpoint.res.WorkflowRes;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * 工作流对象转换器
 *
 * @author dequal
 * @since 2025-05-23
 */
@Mapper
public interface WorkflowConvert {
    
    WorkflowConvert INSTANCE = Mappers.getMapper(WorkflowConvert.class);
    
    /**
     * DO转Res
     *
     * @param workflowDO DO对象
     * @return Res对象
     */
    WorkflowRes toRes(WorkflowDO workflowDO);
} 